package interview.huawei.tjt.training.huaweijishitiku;

import java.util.Scanner;

// 记负均正II
public class HJ105 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        float count1 = 0;
        int count2 = 0;
        float sum = 0;
        while (sc.hasNextInt()) {
            int cur = sc.nextInt();
            if (cur < 0) {
                count2 ++;
            } else {
                count1 ++;
                sum += cur;
            }
        }
        System.out.println(count2);
        if (count1 != 0) {
            System.out.println(String.format("%.1f",sum/count1));
        } else {
            System.out.println("0.0");
        }

    }

}
